<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>头部</title>
	<link rel="stylesheet" type="text/css" href="css/public.css" />
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/public.js"></script>
</head>
<script type="text/javascript">
	function loginout(){
		if(confirm("确定退出么？"))
		{
			var url = "user/loginout";
			parent.location.href=url;
		}
	}
</script>
<body>
	<!-- 头部 -->
	<div class="head">
		<div class="headL">
			<img class="headLogo" src="img/logLOGO.png"/>
		</div>
		<div class="headR">
			<span style="color:#FFF">你好：${sessionScope.user.username}  ${sessionScope.user eq null ? '请先<a href="login.jsp" target=" _parent" >  登录</a>':' <a href="javascript:loginout();" target=" _parent" >【退出】</a>'}</span> 
		</div>
	</div>
</body>
</html>
